package ar.republicagroup.gestion.services;
import ar.republicagroup.gestion.entities.CalendarioBancario;
import java.util.Calendar;
import java.util.Date;
import java.util.Set;

/**
 *
 * @author DIEGOALV
 */
public interface CalendarioBancarioServices {
  
    Set<CalendarioBancario> findEntities();
    public String insert(CalendarioBancario nuevoFeriado);
    public String delete(CalendarioBancario feriado);
    
    /* Business Logic */
    public Calendar calcularFechaDeLiquidacion(); 
    public Calendar calcularFechaDeProximaLiquidacion();
    public Calendar calcularSiguienteDiaHabil();
    public Calendar calcularAnteriorDiaHabil(Calendar selectedDate);
    public boolean isHoliday(Date date,Set<CalendarioBancario> calendario);
    
}
